// pages/home/home.js
const app =  getApp();

Page({
  data: {
    city:""
  },
  onLoad: function (options) {
    app.callback = ()=>{
      var city = app.globalData.currentCity
      this.setData({
        city
      })
    }
  },
  onShow: function () {
    var city = app.globalData.currentCity
    this.setData({
      city
    })
  },
  handleClick(){
    wx.navigateTo({
       url: '/pages/search/search',
    });
  }
})